# config/settings/production.py
from .base import *


DEBUG = False
ALLOWED_HOSTS = ['yourdomain.com']

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_ACCESS_KEY_ID = 'YOUR_ACCESS_KEY'
AWS_SECRET_ACCESS_KEY = 'YOUR_SECRET_KEY'
AWS_STORAGE_BUCKET_NAME = 'your-bucket-name'
AWS_S3_REGION_NAME = 'ap-northeast-1'
AWS_S3_CUSTOM_DOMAIN = f'{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com'
AWS_S3_FILE_OVERWRITE = False
AWS_DEFAULT_ACL = 'public-read'
AWS_QUERYSTRING_AUTH = False

# 生产环境专用
# SMS_PROVIDER = 'aliyun'
# SMS_PROVIDER_CONFIGS = {
#     'aliyun': {
#         'access_key_id': env('ALIYUN_SMS_AK'),
#         'access_secret': env('ALIYUN_SMS_AS')
#     }
# }